const http = uni.$u.http
//轮播图
export const get_banner = (params) => http.post('/api/get_banner', params)
//分类
export const get_cate = (params) => http.post('/api/get_cate', params)
//获取精选
export const get_competitive = (params) => http.post('/api/get_competitive', params)
//猜你喜欢 
export const get_like = (params) => http.post('/api/get_like', params)
//获取用户信息
export const getuserInfo = (params) => http.post('/user/getuserInfo', params)
// 商品列表
export const goods_list = (params) => http.post('/api/get_goods_list', params)
// 商品详情
export const get_goods_detail = (params) => http.post('/api/get_goods_detail', params)
//获取商品评论
export const get_goods_comment = (params) => http.post('/api/get_goods_comment', params)
//获取sku
export const get_sku = (params) => http.post('/api/get_sku', params)
//加入购物车
export const add_cart = (params) => http.post('/api/add_cart', params)
//获取搜索列表
export const get_search_list = (params) => http.post('/api/get_search_list', params)
//购物车
export const get_cart_list = (params) => http.post('/api/get_cart_list', params)
//购物车数量变化
export const change_cart_num = (params) => http.post('/api/change_cart_num', params)
//移除购物车
export const remove_cart = (params) => http.post('/api/remove_cart', params)
//购物车选中/取消选中 
export const toggle_check_cart = (params) => http.post('/api/toggle_check_cart', params)
//全选购物车选中
export const check_cart = (params) => http.post('/api/check_cart', params)
// 全选购物车取消
export const cancel_cart = (params) => http.post('/api/cancel_cart', params)
//确认订单
export const checkOrder = (params) => http.post('/order/checkOrder', params)
//获取默认地址
export const get_default_addr = (params) => http.post('/order/get_default_addr', params)
//获取收货地址列表
export const getAddrList = (params) => http.post('/order/getAddrList', params)
//设置默认地址
export const set_default_addr = (params) => http.post('/order/set_default_addr', params)
//保存收货地址
export const saveAddress = (params) => http.post('/order/saveAddress', params)
//获取收货地址详情
export const get_addr_detail = (params) => http.post('/order/get_addr_detail', params)
//删除地址
export const del_addr = (params) => http.post('/order/del_addr', params)
//提交订单
export const submitOrder = (params) => http.post('/order/submitOrder', params)
//订单详情
export const getOrderDetail = (params) => http.post('/order/getOrderDetail', params)
// 支付订单
export const payOrder = (params) => http.post('/order/payOrder', params)
//订单列表
export const getOrderList = (params) => http.post('/order/getOrderList', params)
//查询订单
export const query_order = (params) => http.post('/order/query_order', params)
//模拟发货
export const send = (params) => http.post('/order/send', params)
//删除订单
export const del_order = (params) => http.post('/order/del_order', params)
// 取消订单
export const cancel_order = (params) => http.post('/order/cancel_order', params)
// 确认收货
export const shouhuo = (params) => http.post('/order/shouhuo', params)
//提交评价
export const saveOrderEvaluateAdd = (params) => http.post('/order/saveOrderEvaluateAdd', params)
//收藏与取消收藏
export const toggle_fav = (params) => http.post('/api/toggle_fav', params)
// 收藏列表
export const get_fav_list = (params) => http.post('/api/get_fav_list', params)
//关于我们
export const get_about = (params) => http.post('/api/get_about', params)
//修改密码
export const updatePwd = (params) => http.post('/user/updatePwd', params)
//修改用户信息
export const editUserInfo = (params) => http.post('/user/editUserInfo', params)

































